# 
# @Author: Cjuicy 
# @Date: 2022-03-21 20:25:16 
# @Last Modified by:   Cjuicys 
# @Last Modified time: 2022-03-21 20:25:16 
# 
'''
存放价钱的读函数
'''
import csv

from pip import main


# 读取csv文件获得价钱信息
def get_price_info():
    price_info = {}
    names_info = {}
    with open('priceInfo.csv', 'r',encoding="gbk") as csvfile: # 此目录即是当前项目根目录
        spamreader = csv.reader(csvfile)
        # 逐行遍历csv文件,按照字典存储用户名与密码
        for row in spamreader:
            price_info[row[0]] = row[1]
            names_info[row[0]] = row[2]
    return price_info,names_info

